package com.yucc.girlimages.ui;

import android.app.Activity;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.graphics.drawable.BitmapDrawable;
import android.os.Bundle;

import com.yucc.girlimages.R;
import com.yucc.girlimages.ui.widget.ScaleImageView;
import com.yucc.girlimages.ui.widget.TouchImageView;

public class TouchImageViewActivity extends Activity {
    /** Called when the activity is first created. */
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        
//        init() ;
       setContentView(R.layout.touch_image) ;
       TouchImageView img = (TouchImageView) findViewById(R.id.imageView_touch) ;
        Bitmap snoop = BitmapFactory.decodeResource(getResources(), R.drawable.network);
        img.setImageBitmap(snoop);
        img.setMaxZoom(4f);
    }
    
    private void init2(){
    	ScaleImageView imageView = new ScaleImageView(this) ;
    	
    }
    
    private void init(){
    	TouchImageView img = new TouchImageView(this);
        // ImageView img = new ImageView(this);
         Bitmap snoop = BitmapFactory.decodeResource(getResources(), R.drawable.network);
         img.setImageDrawable(new BitmapDrawable(snoop));
//         img.setImageBitmap(snoop);
         img.setMaxZoom(4f);
         setContentView(img);
    }
}